//
//  ChartTool.h
//  Daybook
//
//  Created by dllo on 16/5/28.
//  Copyright © 2016年 zhangbin. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ChartTool : NSObject

+ (ChartTool *)shareChartTool;

- (BOOL)isNullInDataBaseWithBeginDate:(NSDate *)beginDate endDate:(NSDate *)endDate type:(NSString *)type;



- (NSMutableArray *)incomeArrayWithBeginDate:(NSDate *)beginDate endDate:(NSDate *)endDate;

- (NSMutableArray *)outLayArrayWithBeginDate:(NSDate *)beginDate endDate:(NSDate *)endDate;

- (NSMutableArray *)sortDescendingOfArray:(NSMutableArray *)oldArray;


- (NSMutableArray *)incomeDictionaryArrayWithBeginDate:(NSDate *)beginDate endDate:(NSDate *)endDate;

- (NSMutableArray *)outLayDictionaryArrayWithBeginDate:(NSDate *)beginDate endDate:(NSDate *)endDate;

+ (NSString *)totalIncomeWithBeginDate:(NSDate *)beginDate endDate:(NSDate *)endDate;

+ (NSString *)totalOutLayWithBeginDate:(NSDate *)beginDate endDate:(NSDate *)endDate;

  /********************************************************************/
//- (NSMutableArray *)arrayByName:(NSString *)name beginDate:(NSDate *)beginDate endDate:(NSDate *)endDate;


@end
